package com.sky.utils;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

/**
 * AliyunOss公共的属性
 *
 * @Author mr.zhang
 * Date 2025/5/21 1:22
 */
@Data
@Component
@NoArgsConstructor
@AllArgsConstructor
@ConfigurationProperties(prefix = "aliyun.oss")//配置的映射
public class AliyunOssProperties {
    private String endpoint;//公共域名
    private String bucketName;//桶名
    private String region;//区域名
    @Value("${OSS_ACCESS_KEY_ID}")
    private String accessKeyId;

    @Value("${OSS_ACCESS_KEY_SECRET}")
    private String accessKeySecret;
}
